package guiceDI;

import com.google.inject.Guice;
import com.google.inject.Injector;

import java.util.Objects;

/**
 * Created with IntelliJ IDEA.
 * User: belict
 * Date: 12/1/13
 * Time: 11:43 PM
 * To change this template use File | Settings | File Templates.
 */
public class Run {
    public static void main(String[] args) {
        Injector injector = Guice.createInjector(new GuiceDemoModule());
        GuiceDemoImpl guiceDemo = injector.getInstance(GuiceDemoImpl.class);

        System.out.println(Objects.toString(guiceDemo.getUser()));
    }
}
